import alSelector from './lib/components/al-selector.vue';
import alCascader from './lib/components/al-cascader.vue';
import alSelectorSearch from './lib/components/al-selector-search';

const Area = {
    alSelector,
    alCascader,
    alSelectorSearch
};

const install = function (Vue, opts = {}) {
    Vue.component(alSelector.name, alSelector);
    Vue.component(alCascader.name, alCascader);
    Vue.component(alSelectorSearch.name, alSelectorSearch);
};

if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default Object.assign(Area, {install});
